package com.rc.saas.tenant.mapper.tenant;

import java.util.List;

import com.rc.saas.tenant.common.base.BaseMapper;
import com.rc.saas.tenant.model.tenant.TenantUser;
import com.rc.saas.tenant.model.tenant.TenantUserExample;
import com.rc.saas.tenant.search.tenant.TenantUserSearch;
import com.rc.saas.tenant.vo.tenant.TenantUserRoleVo;
import com.rc.saas.tenant.vo.tenant.TenantUserVo;

public interface TenantUserMapper extends BaseMapper<Long, TenantUser, TenantUserExample> {
    TenantUser selectUserByMobile(String mobile);

    List<TenantUser> selectUserByOrgTag(String orgTag);

    List<TenantUser> selectRoleByUser(String userName);

    List<TenantUser> listTenantUserByUserType(String userType);

    List<TenantUserVo> listPageTenantUser(TenantUserSearch tenantUserSearch);

    TenantUserRoleVo getLoginRole(String loginName);
}